Skip to content

Add airflow-ts-pack bundle build tool for TypeScript SDK#69295

Open
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:ts-pack-cli
Open

Add airflow-ts-pack bundle build tool for TypeScript SDK#69295
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:ts-pack-cli

Conversation

@guan404ming

@guan404ming guan404ming commented Jul 3, 2026

Copy link
Copy Markdown
Member

Related Issue

close #69286

Why

TypeScript SDK users had to run esbuild by hand and hand-write the airflow-metadata.yaml sidecar, which could drift from the bundle.

How

  • Add airflow-ts-pack CLI that bundles a TypeScript entrypoint with esbuild and embeds the Airflow metadata into bundle.mjs as a trailing //# airflowMetadata=<base64> comment, producing a single deployable artifact
  • Add --airflow-metadata dump mode to startCoordinator() so the manifest comes from the bundle's own task registry, never hand-written
  • Update NodeCoordinator to read embedded metadata first, falling back to the airflow-metadata.yaml sidecar for compatibility

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    Claude Code with Fable 5

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@guan404ming guan404ming marked this pull request as ready for review July 3, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript SDK: add a ts pack bundle build tool

1 participant